package com.chenjj.bigdata.mapreduce.extend;



import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat;

public class CustmerFileOutputFormat extends TextOutputFormat {
    /**
     *
     * @param job
     * @param fileBaseName 文件名前缀，默认是part-r-00000，自定义成fileBaseName-r-00000
     */
    public static void setOutputName(JobContext job, String fileBaseName) {
        job.getConfiguration().set(BASE_OUTPUT_NAME, fileBaseName);
    }
}
